using UnityEngine;
using UnityEngine.SceneManagement;

public class SystemSetting
{
    public static void Quit()
    {
        if (Input.GetKeyDown(KeyCode.Escape))
        {
            Application.Quit();
        }
    }

    public static void Restart()
    {
        if(Input.GetKeyDown(KeyCode.R))
        {
            SceneManager.LoadScene(Defines.GameScene);
        }
    }
}